{{!-- // 基于template/src/views/\{{appModules}}/\{{pages@DEWFDYNAACTIONVIEW}}/\{{spinalCase page.codeName}}-model.ts.hbs生成
import { IWFDynaActionViewModel } from "@/core/interface/view/model";
function getModel(): IWFDynaActionViewModel {
    return {
        {{> @macro/view/view-model.hbs page=page}}
        tempMode: {{page.tempMode}},
        dynamicForm: [
        {{#each page.ctrls as | ctrl |}}
            {{#eq ctrl.controlType 'FORM'}}
            {
                codeName: "{{ctrl.codeName}}",
                name: "{{ctrl.name}}",
                actions: {
                    loadAction: '{{#and ctrl.getPSControlAction ctrl.getPSControlAction.psAppDEMethod}}{{ctrl.getPSControlAction.psAppDEMethod.codeName}}{{else}}Get{{/and}}',
                    loadDraftAction: '{{#and ctrl.getDraftPSControlAction ctrl.getDraftPSControlAction.psAppDEMethod}}{{ctrl.getDraftPSControlAction.psAppDEMethod.codeName}}{{else}}GetDraft{{/and}}',
                    updateAction: '{{#and ctrl.updatePSControlAction ctrl.updatePSControlAction.psAppDEMethod}}{{ctrl.updatePSControlAction.psAppDEMethod.codeName}}{{else}}Update{{/and}}',
                    createAction: '{{#and ctrl.createPSControlAction ctrl.createPSControlAction.psAppDEMethod}}{{ctrl.createPSControlAction.psAppDEMethod.codeName}}{{else}}Create{{/and}}',
                    removeAction: '{{#and ctrl.removePSControlAction ctrl.removePSControlAction.psAppDEMethod}}{{ctrl.removePSControlAction.psAppDEMethod.codeName}}{{else}}Remove{{/and}}',
                    wfSubmitAction: '{{#if ctrl.wFSubmitPSControlAction}}{{ctrl.wFSubmitPSControlAction.actionName}}{{/if}}',
                    wfStartAction: '{{#if ctrl.wfStartPSControlAction}}{{ctrl.wfStartPSControlAction.actionName}}{{/if}}',
                }
            },
            {{/eq}}
        {{/each}}
        ],
    }
}
export const model = getModel(); --}}